projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63680fe
)
(Ffile_symlink_p): Fix last change.
author
Gerd Moellmann
<gerd@gnu.org>
Fri, 14 Sep 2001 11:20:57 +0000
(11:20 +0000)
committer
Gerd Moellmann
<gerd@gnu.org>
Fri, 14 Sep 2001 11:20:57 +0000
(11:20 +0000)
src/fileio.c
patch
|
blob
|
history
diff --git
a/src/fileio.c
b/src/fileio.c
index eba2ac0bbaf756f95cf430a7ac9430ad8ff4d6cf..20b7079700edcb7c9dd63088ce9f12829baff459 100644
(file)
--- a/
src/fileio.c
+++ b/
src/fileio.c
@@
-3106,15
+3106,18
@@
Otherwise returns nil.")
errno = 0;
valsize = readlink (XSTRING (filename)->data, buf, bufsize);
- if (valsize == -1
+ if (valsize == -1)
+ {
#ifdef ERANGE
/* HP-UX reports ERANGE if buffer is too small. */
- && errno != ERANGE
+ if (errno == ERANGE)
+ valsize = bufsize;
+ else
#endif
- )
- {
-
xfree (buf)
;
- return Qnil;
+ {
+ xfree (buf);
+
return Qnil
;
+ }
}
}
while (valsize >= bufsize);